import { http, useUploadFile } from "@/api";
// 获取单页
export const getContPage = (data?: any) => {
    return http({
        method: "POST",
        url: "index/index/getAboutUs",
        data,
    });
};
//系统设置
export const getAppSettingsApi = (data?: any) => {
    return http({
        method: "POST",
        url: "index/index/getSettings",
        data,
    });
}

// 首页数据
export const getIndexsApi = (data?: any) => {
    return http({
        method: "POST",
        url: "index/index/index",
        data,
    });
}

// 发送验证码
export const sendCodeApi = (data?: any) => {
    return http({
        method: "POST",
        url: "index/login/phoneCode",
        data,
    });
};

// 文件上传
export function upload(params?: any, formData?: any) {
    return useUploadFile("index/image/upload", "POST", params, formData);
}
